/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import BO.DeviceBO;
import pojo.Device;

/**
 *
 * @author phong
 */
public class DeviceBean {

    private Device device;
    /**
     * Creates a new instance of DeviceBean
     */
    public DeviceBean() {
    }

    public Device getDevice() {
        return device;
    }

    public void setDevice(Device device) {
        this.device = device;
    }
    
    //<editor-fold defaultstate="collapsed" desc="Lấy thông tin Device thông qua id">
    public Device getDeviceByID(String id) {
        device =  DeviceBO.getDeviceByID(id);
        return device;
    }
    //</editor-fold>
}
